package com.boss.salary.parsingExcel;

import com.alibaba.excel.metadata.BaseRowModel;
import com.alibaba.excel.support.ExcelTypeEnum;
import com.boss.salary.ExcelModel.ExcelResult;
import com.boss.sys.ca.user.dto.UserDTO;

import java.io.InputStream;

public interface ExcelParsingService {

    /**
     * 解析excel
     * @param inputStream
     * @param clazz
     * @param excelTypeEnum
     * @return
     */
    <E> ExcelResult<E> readExcelWithModel(InputStream inputStream, Class<? extends BaseRowModel> clazz, ExcelTypeEnum excelTypeEnum, UserDTO userDto);
}
